####################################################################################
#   makefile
####################################################################################
include ../config.local
INCLUDE += -I../$(INCLUDEDIR) -I../$(INCLUDEDIR)/live555UsageEnvironment \
	 -I../$(INCLUDEDIR)/live555BasicUsageEnvironment -I../$(INCLUDEDIR)/live555groupsock -I../$(INCLUDEDIR)/live555liveMedia \
	 -I../$(INCLUDEDIR)/muduo_base -I../$(INCLUDEDIR)/rtspclient

LIB   :=LibRtspClient.a
SRC += zRtspClient.c
SRC += zRtspClientManager.c

OBJS = $(addsuffix .o,$(basename $(SRC)))

all:$(LIB)
	
$(LIB) :$(OBJS)
	$(AR) -rc $(LIB) $(OBJS)
	$(CP) $(LIB) ../$(LIBDIR)/
%.o : %.cpp
	$(CPP)  $(BASE_CFLAGS) -ldl -std=c++11 -ffunction-sections -fdata-sections -O2 -g -c $(INCLUDE) $< -o $@

clean: 
	-rm -rf *.o
	-rm -rf $(LIB)
	-rm -rf ../$(LIBDIR)/$(LIB)
